<!-- Stored in resources/views/child.blade.php -->

@extends('layouts.app')

@section('title', 'Page Title')

@section('sidebar')
    @parent

    <p>This is appended to the master sidebar.</p>
@endsection

@section('content')
    <div class="page-group">
        <div id="list" class="page">
            <header class="bar bar-nav">
                <h1 class="title">{{$title}}</h1>
            </header>
            @include('nav')
            <!-- 添加 class infinite-scroll 和 data-distance  向下无限滚动可不加infinite-scroll-bottom类，这里加上是为了和下面的向上无限滚动区分-->
            <div class="content infinite-scroll infinite-scroll-bottom" data-distance="100">
                <div id="card_list" cate_id="{{$cate_type}}">
                    <!-- <div class="card demo-card-header-pic">
                        <div valign="bottom" class="card-header color-white no-border no-padding">
                            <img class='card-cover' src="//gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i3/TB10LfcHFXXXXXKXpXXXXXXXXXX_!!0-item_pic.jpg_250x250q60.jpg" alt="">
                        </div>
                        <div class="card-content">
                            <div class="card-content-inner">
                                <p class="color-gray">发表于 2015/01/15</p>
                            </div>
                        </div>
                        <div class="card-footer">
                            <a href="#" class="link">赞</a>
                            <a href="#" class="link">踩</a>
                        </div>
                    </div>-->
                </div>
                <!-- 加载提示符 -->
                <div class="infinite-scroll-preloader">
                    <div class="preloader"></div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('script')
    <script>
        //打开自动初始化页面的功能
        //建议不要打开自动初始化，而是自己调用 $.init 方法完成初始化
        $.config = {
        }
    </script>
    <script type='text/javascript' src='{{ URL::asset('js/list.js') }}' charset='utf-8'></script>
@endsection
